package com.cyrene.stock.controller;

import com.cyrene.stock.api.UserControllerAPI;
import com.cyrene.stock.response.ResponseResult;
import com.cyrene.stock.service.UserService;
import com.cyrene.stock.vo.CaptchaVO;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:Shuna
 * @Date: 2025/11/07 9:30
 * @Description:
 */
@RestController
public class UserController implements UserControllerAPI {

    @Autowired
    private  UserService userService;



    @Override
    public String getName() {
        return "cyrene";
    }

    @Override
    public ResponseResult<CaptchaVO> generateCaptcha() {
        return ResponseResult.ok(userService.generateCaptcha());
    }
}